#include "../include/header.h"
int main(int argc, char* argv[]){
	ARGS_CHECK(argc, 2);
	int fd = open(argv[1], O_RDWR);
	ERROR_CHECK(fd, -1, "open");


	char ch;
	while(1){
		int ret = read(fd, &ch, sizeof ch);
		ERROR_CHECK(ret, -1, "read");
		if(ret == 0){
			break;
		}
		ch = toupper(ch);
		lseek(fd, -1, SEEK_CUR);

		write(fd, &ch, sizeof ch);
	}



	close(fd);
	return 0;
}